<?
define('_VIEW_MODEL_',"admin");
session_start();
$statu = $_SESSION['statu'];
require_once '../init.php';
if(!$statu){
	echo "<script>window.parent.location.href='./index.php'</script>";
}
if(isset($act)&&$act=="updatepassword"){
	$ps = md5($newpassword);
	$db->Execute("update {$telper}admin set `password` = '$ps' where `name` = 'admin'");
	echo "<script>window.parent.location.href='./index.php'</script>";
}
$smartyObj->assign("title",$admintitle);
$smartyObj->assign("adminowentitle",$adminowentitle);
$smartyObj->display("owen.tpl");
?>